﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Host
{
    class Program
    {
        static void Main(string[] args)
        {
            ServiceHost servHost;
            try
            {
                //servHost = new ServiceHost(typeof(MyService));
                //WSHttpBinding ws = new WSHttpBinding();
                //ws.Security.Mode = SecurityMode.Message;
                //ws.Security.Message.ClientCredentialType = MessageCredentialType.Windows;
                //servHost.AddServiceEndpoint(typeof(IMyService), ws, new Uri("http://localhost:8732/Design_Time_Addresses/BUSService/MyService/"));
                //servHost.Open();
                //Console.WriteLine("\n   Service is running ...");
                //Console.WriteLine("\n   Press enter to close service.");
                //Console.ReadKey();
                //servHost.Close();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
    }
}
